home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d20
/
sexp110.arc
/
MEXPORT.DOC
< prev
next >
Wrap
Text File
|
1991-02-22
|
6KB
|
164 lines
MEXPORT - MSG Export Utility V 1.10
(c) 1991 by Eric Jacksch
LICENCE AGREEMENT
This program is released as PostCardWare. In order to licence
this utility for use, please send a postcard, preferably of some
unique local feature to:
Eric Jacksch
MExport Licence
Box 1815
Kemptville, Ontario
Canada
K0G 1J0
and include your name and address. No fee, no strings, no junk
mail...I just get some postcards for a change.
Please feel free to distribute the archive in it's entire,
unmodified form. Should you wish an original intact archive, you
may request MEXPORT from 1:163/111.
OPERATION
MExport is a small utility to export messages in a *.msg style
base. It is fully redirectable, and thus can be used to export
the base (or selected messages) to the console, printer, a text
file, etc. The syntax is as follows:
MEXPORT <path> [-s<subject>] [-d<net/node>] [-o<net/node] [-m]
[-f] [-k] [-r<first>-<last>] [-b<keyword>]
<path> is the full path to the directory containing the *.msg
base,
s<subject> is a string to be compared to the beginning of the subject
field of the message,
d<net/node> is a network address to be compared to the
destination address of the message,
o<net/node> is a network address to be compared to the origin
address of the message,
m indicates marked mode - the message will only be
processed if the times read counter is zero, and
then it will be incremented to one.
f will cause formfeeds to be inserted between messages
k will kill a message after it has been exported
r<first>-<last> allows a range to be specified. Only messages
between <first> and <last> inclusive are processed.
b<keyword> will search the body of the message for the supplied
keyword and only export messages which contain the
keyword. This function is case insensitive. Underline
characters, " _ " on the command line will be compared as
blanks in the message body. Note that this option
may result in slower operation.
Where selection criteria are specified, the message will only be
exported if it meets all specified criteria.
EXAMPLES
mexport d:\mail\net >> msg.txt
will export all messages in the base to the text file msg.txt
mexport d:\mail\net -m >> msg.txt
will export all unread messags in the base to msg.txt and
then set the times read counter to one. Using this immediatly
after unpacking incomming mail and immediately after mail is
entered locally will cause all mail to be exported once.
mexport d:\mail\net -sURGENT -f -m > lpt1
will export any message with a subject line starting with
URGENT (case insensitive) to lpt1, send a form feed, and then
mark the message so that this only happens once. (Please, don't
forget to use either the -m or -k option in batch file
applications!)
mexport d:\mail\net -d163/111 >> msg.txt
will export all messages in the base which are addressed to
163/111 (note that zone is not checked as it is not contained in
the message header). This can, of course, be combined with any
other option, including -m. Thus, running -d and -m upon
unpacking incomming mail will log all inbound mail to the
specified system.
mexport d:\mail\net -d163/111 -o163/115 -m -f >> msg.txt
will export any messages from 163/115 which are addressed to
my system, and it will only do it once. The F option will also
cause formfeeds to be inserted between messages.
mexport d:\mail\net -r5-10 -bfusion >> msg.txt
will process messages 5 through 10 inclusive and export any having
the keyword "fusion". (Note that this function is case insensitive).
MEXPORT and MsgTrack
For those of you who run MsgTrack by Andrew Farmer at 1:163/115,
the kill option is an ideal companion to MT's options which will
move sent and received mail into another directory. Every night,
included in a short midnight event, I execute the following,
d:
cd \logs
MT
mexport d:\mail\storage -f -k >> d:\logs\netmail.log
daynbr /-1 ren netmail.log netmail.@###
which causes all mail sent or received that day to be moved into
an ascii text file, with each message being deleted as it is
exported, and the file then being renamed using the julian date
of the day just ended.
BUGS? SUGGESTIONS? COMMENTS? RUDE REMARKS?
Please netmail me at 1:163/111 with any feedback you might have.
SOCIAL STATEMENT
Although this utility has the capability to incercept and retain
copies of in-transit mail, I most strongly discourage sysops from
using it to do so. The intent of this program as related to
netmail is to allow automatic exports of netmail to and from
*your* system, not in-transit mail. Even those of you running
without MsgTrack can limit exports to your *own* mail using a run
with the -d option after unpacking mail, and the -o option before
packing mail.